home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung / Power-Programmierung (Tewi)(1994).iso / magazine / pctchnqs / 1990 / number4 / l3.asm < prev    next >
Assembly Source File  |  1990-08-02  |  271b  |  12 lines

  1.  
  2.  
  3.      SHL  BX,1                ;prepare for word sized look up
  4.      OR   AX,ShiftTable[BX]   ;look up the bit and OR it in
  5.           :
  6. ShiftTable     LABEL     WORD
  7. BIT_PATTERN=0001H
  8.      REPT 16
  9.      DW   BIT_PATTERN
  10. BIT_PATTERN=BIT_PATTERN SHL 1
  11.      ENDM
  12.